<!-- HTML header for doxygen 1.8.6-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<title>OpenCV: cv::RNG_MT19937 Class Reference</title>
<link href="../../opencv.ico" rel="shortcut icon" type="image/x-icon" />
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="../../tutorial-utils.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
//<![CDATA[
MathJax.Hub.Config(
{
  TeX: {
      Macros: {
          matTT: [ "\\[ \\left|\\begin{array}{ccc} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{array}\\right| \\]", 9],
          fork: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ \\end{array} \\right.", 4],
          forkthree: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ \\end{array} \\right.", 6],
          forkfour: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ #7 & \\mbox{#8}\\\\ \\end{array} \\right.", 8],
          vecthree: ["\\begin{bmatrix} #1\\\\ #2\\\\ #3 \\end{bmatrix}", 3],
          vecthreethree: ["\\begin{bmatrix} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{bmatrix}", 9],
          cameramatrix: ["#1 = \\begin{bmatrix} f_x & 0 & c_x\\\\ 0 & f_y & c_y\\\\ 0 & 0 & 1 \\end{bmatrix}", 1],
          distcoeffs: ["(k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6 [, s_1, s_2, s_3, s_4[, \\tau_x, \\tau_y]]]]) \\text{ of 4, 5, 8, 12 or 14 elements}"],
          distcoeffsfisheye: ["(k_1, k_2, k_3, k_4)"],
          hdotsfor: ["\\dots", 1],
          mathbbm: ["\\mathbb{#1}", 1],
          bordermatrix: ["\\matrix{#1}", 1]
      }
  }
}
);
//]]>
</script><script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
<link href="../../stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<!--#include virtual="/google-search.html"-->
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../opencv-logo-small.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">OpenCV
   &#160;<span id="projectnumber">4.5.2</span>
   </div>
   <div id="projectbrief">Open Source Computer Vision</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('../../',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="../../d2/d75/namespacecv.html">cv</a></li><li class="navelem"><a class="el" href="../../db/d3e/classcv_1_1RNG__MT19937.html">RNG_MT19937</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="../../d7/d0d/classcv_1_1RNG__MT19937-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">cv::RNG_MT19937 Class Reference<div class="ingroups"><a class="el" href="../../d0/de1/group__core.html">Core functionality</a> &raquo; <a class="el" href="../../d2/de8/group__core__array.html">Operations on arrays</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>Mersenne Twister random number generator.  
 <a href="../../db/d3e/classcv_1_1RNG__MT19937.html#details">More...</a></p>

<p><code>#include &lt;opencv2/core.hpp&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a53ee8b21d1281268d1cf9ae88937d2bb"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d3e/classcv_1_1RNG__MT19937.html#a53ee8b21d1281268d1cf9ae88937d2bb">RNG_MT19937</a> ()</td></tr>
<tr class="separator:a53ee8b21d1281268d1cf9ae88937d2bb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a669d829258aed084ce536c508010d1cf"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d3e/classcv_1_1RNG__MT19937.html#a669d829258aed084ce536c508010d1cf">RNG_MT19937</a> (unsigned s)</td></tr>
<tr class="separator:a669d829258aed084ce536c508010d1cf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad06f6add92f9087ed6e0f17898e2652c"><td class="memItemLeft" align="right" valign="top">unsigned&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d3e/classcv_1_1RNG__MT19937.html#ad06f6add92f9087ed6e0f17898e2652c">next</a> ()</td></tr>
<tr class="separator:ad06f6add92f9087ed6e0f17898e2652c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a806b08b56c6b76a036bebc5a02a9145c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d3e/classcv_1_1RNG__MT19937.html#a806b08b56c6b76a036bebc5a02a9145c">operator double</a> ()</td></tr>
<tr class="separator:a806b08b56c6b76a036bebc5a02a9145c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8d7f4f55d7cfac265cede2fafed93524"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d3e/classcv_1_1RNG__MT19937.html#a8d7f4f55d7cfac265cede2fafed93524">operator float</a> ()</td></tr>
<tr class="separator:a8d7f4f55d7cfac265cede2fafed93524"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a31e2bc86ef08ccb268a10101ee0ccbbf"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d3e/classcv_1_1RNG__MT19937.html#a31e2bc86ef08ccb268a10101ee0ccbbf">operator unsigned</a> ()</td></tr>
<tr class="separator:a31e2bc86ef08ccb268a10101ee0ccbbf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5102b5f43fc7c2997f2d2bc6b693e0b4"><td class="memItemLeft" align="right" valign="top">unsigned&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d3e/classcv_1_1RNG__MT19937.html#a5102b5f43fc7c2997f2d2bc6b693e0b4">operator()</a> (unsigned N)</td></tr>
<tr class="separator:a5102b5f43fc7c2997f2d2bc6b693e0b4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa52601c233cda79131052299a88ad9c2"><td class="memItemLeft" align="right" valign="top">unsigned&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d3e/classcv_1_1RNG__MT19937.html#aa52601c233cda79131052299a88ad9c2">operator()</a> ()</td></tr>
<tr class="separator:aa52601c233cda79131052299a88ad9c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a11e6426e20d3ed617cf8fea9c3d7d2cf"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d3e/classcv_1_1RNG__MT19937.html#a11e6426e20d3ed617cf8fea9c3d7d2cf">seed</a> (unsigned s)</td></tr>
<tr class="separator:a11e6426e20d3ed617cf8fea9c3d7d2cf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a217c481f4272e429dc8b30fe923833d2"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d3e/classcv_1_1RNG__MT19937.html#a217c481f4272e429dc8b30fe923833d2">uniform</a> (int a, int b)</td></tr>
<tr class="memdesc:a217c481f4272e429dc8b30fe923833d2"><td class="mdescLeft">&#160;</td><td class="mdescRight">returns uniformly distributed integer random number from [a,b) range  <a href="#a217c481f4272e429dc8b30fe923833d2">More...</a><br /></td></tr>
<tr class="separator:a217c481f4272e429dc8b30fe923833d2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3d313cfc1fe02ea782fe6cf541946f41"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d3e/classcv_1_1RNG__MT19937.html#a3d313cfc1fe02ea782fe6cf541946f41">uniform</a> (float a, float b)</td></tr>
<tr class="memdesc:a3d313cfc1fe02ea782fe6cf541946f41"><td class="mdescLeft">&#160;</td><td class="mdescRight">returns uniformly distributed floating-point random number from [a,b) range  <a href="#a3d313cfc1fe02ea782fe6cf541946f41">More...</a><br /></td></tr>
<tr class="separator:a3d313cfc1fe02ea782fe6cf541946f41"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a526ce7385ddba64d60b85384ca4ec597"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d3e/classcv_1_1RNG__MT19937.html#a526ce7385ddba64d60b85384ca4ec597">uniform</a> (double a, double b)</td></tr>
<tr class="memdesc:a526ce7385ddba64d60b85384ca4ec597"><td class="mdescLeft">&#160;</td><td class="mdescRight">returns uniformly distributed double-precision floating-point random number from [a,b) range  <a href="#a526ce7385ddba64d60b85384ca4ec597">More...</a><br /></td></tr>
<tr class="separator:a526ce7385ddba64d60b85384ca4ec597"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Mersenne Twister random number generator. </p>
<p>Inspired by <a href="http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/MT2002/CODES/mt19937ar.c">http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/MT2002/CODES/mt19937ar.c</a> </p><dl class="todo"><dt><b><a class="el" href="../../dd/da0/todo.html#_todo000005">Todo:</a></b></dt><dd>document </dd></dl>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a53ee8b21d1281268d1cf9ae88937d2bb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a53ee8b21d1281268d1cf9ae88937d2bb">&#9670;&nbsp;</a></span>RNG_MT19937() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cv::RNG_MT19937::RNG_MT19937 </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a669d829258aed084ce536c508010d1cf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a669d829258aed084ce536c508010d1cf">&#9670;&nbsp;</a></span>RNG_MT19937() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cv::RNG_MT19937::RNG_MT19937 </td>
          <td>(</td>
          <td class="paramtype">unsigned&#160;</td>
          <td class="paramname"><em>s</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="ad06f6add92f9087ed6e0f17898e2652c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad06f6add92f9087ed6e0f17898e2652c">&#9670;&nbsp;</a></span>next()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned cv::RNG_MT19937::next </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a806b08b56c6b76a036bebc5a02a9145c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a806b08b56c6b76a036bebc5a02a9145c">&#9670;&nbsp;</a></span>operator double()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cv::RNG_MT19937::operator double </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a8d7f4f55d7cfac265cede2fafed93524"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8d7f4f55d7cfac265cede2fafed93524">&#9670;&nbsp;</a></span>operator float()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cv::RNG_MT19937::operator float </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a31e2bc86ef08ccb268a10101ee0ccbbf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a31e2bc86ef08ccb268a10101ee0ccbbf">&#9670;&nbsp;</a></span>operator unsigned()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cv::RNG_MT19937::operator unsigned </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a5102b5f43fc7c2997f2d2bc6b693e0b4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5102b5f43fc7c2997f2d2bc6b693e0b4">&#9670;&nbsp;</a></span>operator()() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned cv::RNG_MT19937::operator() </td>
          <td>(</td>
          <td class="paramtype">unsigned&#160;</td>
          <td class="paramname"><em>N</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="aa52601c233cda79131052299a88ad9c2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa52601c233cda79131052299a88ad9c2">&#9670;&nbsp;</a></span>operator()() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned cv::RNG_MT19937::operator() </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a11e6426e20d3ed617cf8fea9c3d7d2cf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a11e6426e20d3ed617cf8fea9c3d7d2cf">&#9670;&nbsp;</a></span>seed()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::RNG_MT19937::seed </td>
          <td>(</td>
          <td class="paramtype">unsigned&#160;</td>
          <td class="paramname"><em>s</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a217c481f4272e429dc8b30fe923833d2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a217c481f4272e429dc8b30fe923833d2">&#9670;&nbsp;</a></span>uniform() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int cv::RNG_MT19937::uniform </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>returns uniformly distributed integer random number from [a,b) range </p>

</div>
</div>
<a id="a3d313cfc1fe02ea782fe6cf541946f41"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3d313cfc1fe02ea782fe6cf541946f41">&#9670;&nbsp;</a></span>uniform() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float cv::RNG_MT19937::uniform </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>returns uniformly distributed floating-point random number from [a,b) range </p>

</div>
</div>
<a id="a526ce7385ddba64d60b85384ca4ec597"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a526ce7385ddba64d60b85384ca4ec597">&#9670;&nbsp;</a></span>uniform() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double cv::RNG_MT19937::uniform </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>returns uniformly distributed double-precision floating-point random number from [a,b) range </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>opencv2/<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">core.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.6-->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Apr 2 2021 11:36:43 for OpenCV by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
<script type="text/javascript">
//<![CDATA[
addTutorialsButtons();
//]]>
</script>
</body>
</html>
